<template>
  <div class="layout">
    <h1>home page</h1>
    <VisualEditor v-model="jsonData" :config="visualConfig"></VisualEditor>
    <TestUseModel modelValue="leo"></TestUseModel>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import visualConfig from '@/components/visual-config/index';
import { VisualEditor } from './components/visual-editor/index';
import { TestUseModel } from './utils/useModel';

export default defineComponent({
  name: 'App',
  components: { VisualEditor, TestUseModel },
  data() {
    return {
      visualConfig,
      jsonData: {
        container: {
          width: 800,
          height: 500
        },
        blocks: [
          {
            top: 100,
            left: 100
          },
          {
            top: 200,
            left: 200
          },
          {
            top: 300,
            left: 300
          }
        ]
      }
    };
  }
});
</script>

<style lang="scss"></style>
